<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Laravel\Scout\Searchable;

class Commodity extends Model
{
    use Searchable;
    protected $table='commodity';


    public function searchableAs()
    {
        return 'co_name';
    }

    public function childClass()
    {
        return $this->belongsTo("App\Models\ChildClass",'pa_id','id');
    }

}
